<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: H:/project/LibTools/src/socket/SockTools.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_9ad1227260954e346101f3844f0abb3d.html">socket</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">类</a> &#124;
<a href="#define-members">宏定义</a> &#124;
<a href="#typedef-members">类型定义</a> &#124;
<a href="#func-members">函数</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle">
<div class="title">SockTools.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;map&gt;</code><br />
<code>#include &lt;queue&gt;</code><br />
<code>#include &quot;<a class="el" href="_sock_error_8h_source.html">SockError.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_socket_def_8h_source.html">SocketDef.h</a>&quot;</code><br />
<code>#include &lt;string&gt;</code><br />
<code>#include &lt;sys/un.h&gt;</code><br />
</div>
<p><a href="_sock_tools_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
类</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_sock_addr.html">CSockAddr</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">协议地址结构体  <a href="class_c_sock_addr.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_handle_base.html">HandleBase</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">回调函数基类  <a href="class_handle_base.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_c_t_handle.html">ACTHandle&lt; Func &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_a_c_t_handle_null.html">ACTHandleNull&lt; Func &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_post_handle.html">PostHandle&lt; Func &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">用户投递回调  <a href="class_post_handle.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_post_handle_null.html">PostHandleNull&lt; Func &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_r_handle.html">WRHandle&lt; Func &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_r_handle_null.html">WRHandleNull&lt; Func &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_r_addr_handle.html">WRAddrHandle&lt; Func &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_w_r_addr_handle_null.html">WRAddrHandleNull&lt; Func &gt;</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:ad5e706c22565ef38bcf6421cc05c3514"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#ad5e706c22565ef38bcf6421cc05c3514">SOCKIDEN_ZERO</a>&#160;&#160;&#160;0</td></tr>
<tr class="separator:ad5e706c22565ef38bcf6421cc05c3514"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">接收回调函数</div></td></tr>
<tr class="memitem:a59cac0d926595c4ebd82cf829a49b4bf"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a59cac0d926595c4ebd82cf829a49b4bf">AcceptHandle</a>&#160;&#160;&#160;<a class="el" href="class_a_c_t_handle.html">ACTHandle</a></td></tr>
<tr class="separator:a59cac0d926595c4ebd82cf829a49b4bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d9fef77e2a00d63c4a5eb9d85b20144"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a0d9fef77e2a00d63c4a5eb9d85b20144">AcceptHandleNull</a>&#160;&#160;&#160;<a class="el" href="class_a_c_t_handle_null.html">ACTHandleNull</a></td></tr>
<tr class="separator:a0d9fef77e2a00d63c4a5eb9d85b20144"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">连接回调函数</div></td></tr>
<tr class="memitem:aa7015b245ddc2e7d6eafc9e3c4cdde10"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#aa7015b245ddc2e7d6eafc9e3c4cdde10">ConnectHandle</a>&#160;&#160;&#160;<a class="el" href="class_a_c_t_handle.html">ACTHandle</a></td></tr>
<tr class="separator:aa7015b245ddc2e7d6eafc9e3c4cdde10"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2acb96bf6b526c449d82546b317d0833"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a2acb96bf6b526c449d82546b317d0833">ConnectHandleNull</a>&#160;&#160;&#160;<a class="el" href="class_a_c_t_handle_null.html">ACTHandleNull</a></td></tr>
<tr class="separator:a2acb96bf6b526c449d82546b317d0833"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">超时回调函数</div></td></tr>
<tr class="memitem:a48c0b32db2190fa1ef69ff765ce9047a"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a48c0b32db2190fa1ef69ff765ce9047a">TimeoutHandle</a>&#160;&#160;&#160;<a class="el" href="class_a_c_t_handle.html">ACTHandle</a></td></tr>
<tr class="separator:a48c0b32db2190fa1ef69ff765ce9047a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f9f54d4280fff668917b64c28f05b21"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a8f9f54d4280fff668917b64c28f05b21">TimeoutHandleNull</a>&#160;&#160;&#160;<a class="el" href="class_a_c_t_handle_null.html">ACTHandleNull</a></td></tr>
<tr class="separator:a8f9f54d4280fff668917b64c28f05b21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">写回调函数</div></td></tr>
<tr class="memitem:a98f727c835ef1e8dab91376ac6f77307"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a98f727c835ef1e8dab91376ac6f77307">WriteHandle</a>&#160;&#160;&#160;<a class="el" href="class_w_r_handle.html">WRHandle</a></td></tr>
<tr class="separator:a98f727c835ef1e8dab91376ac6f77307"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae34744d4c503b8497eccf3170c647ecf"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#ae34744d4c503b8497eccf3170c647ecf">WriteHandleNull</a>&#160;&#160;&#160;<a class="el" href="class_w_r_handle_null.html">WRHandleNull</a></td></tr>
<tr class="separator:ae34744d4c503b8497eccf3170c647ecf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">读回调函数</div></td></tr>
<tr class="memitem:a04df18cf2e31e3b90db6b32e80c6f9cb"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a04df18cf2e31e3b90db6b32e80c6f9cb">ReadHandle</a>&#160;&#160;&#160;<a class="el" href="class_w_r_handle.html">WRHandle</a></td></tr>
<tr class="separator:a04df18cf2e31e3b90db6b32e80c6f9cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65fed703a397af3bcd8215cc6f627376"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a65fed703a397af3bcd8215cc6f627376">ReadHandleNull</a>&#160;&#160;&#160;<a class="el" href="class_w_r_handle_null.html">WRHandleNull</a></td></tr>
<tr class="separator:a65fed703a397af3bcd8215cc6f627376"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">带地址信息写回调函数</div></td></tr>
<tr class="memitem:a0848656016aca1833c276f765003456c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a0848656016aca1833c276f765003456c">WriteAddrHandle</a>&#160;&#160;&#160;<a class="el" href="class_w_r_addr_handle.html">WRAddrHandle</a></td></tr>
<tr class="separator:a0848656016aca1833c276f765003456c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2667b68c3f52c29704ce1b76b2dc3570"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a2667b68c3f52c29704ce1b76b2dc3570">WriteAddrHandleNull</a>&#160;&#160;&#160;<a class="el" href="class_w_r_addr_handle_null.html">WRAddrHandleNull</a></td></tr>
<tr class="separator:a2667b68c3f52c29704ce1b76b2dc3570"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">带地址信息读回调函数</div></td></tr>
<tr class="memitem:a51429904e713674c3ab7b0474a452ea3"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a51429904e713674c3ab7b0474a452ea3">ReadAddrHandle</a>&#160;&#160;&#160;<a class="el" href="class_w_r_addr_handle.html">WRAddrHandle</a></td></tr>
<tr class="separator:a51429904e713674c3ab7b0474a452ea3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a605103f80900756f0b8428b5227e9ab2"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a605103f80900756f0b8428b5227e9ab2">ReadAddrHandleNull</a>&#160;&#160;&#160;<a class="el" href="class_w_r_addr_handle_null.html">WRAddrHandleNull</a></td></tr>
<tr class="separator:a605103f80900756f0b8428b5227e9ab2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
类型定义</h2></td></tr>
<tr class="memitem:a23c9ed857354ad531dd0484d638a6224"><td class="memItemLeft" align="right" valign="top">typedef sockaddr_un&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a23c9ed857354ad531dd0484d638a6224">SOCKADDR_UN</a></td></tr>
<tr class="separator:a23c9ed857354ad531dd0484d638a6224"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">tcp回调函数</div></td></tr>
<tr><td colspan="2"><div class="groupText"><p>参数说明 dwSize 完成时的读取或写入的大小 ec 错误码 invoker 回调指针数据 </p>
</div></td></tr>
<tr class="memitem:afe2675c066a09f87a630836c5f721e40"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#afe2675c066a09f87a630836c5f721e40">lpAcceptCompleteFunc</a>) (<a class="el" href="class_c_sock_error.html">CSockError</a> ec, void *invoker)</td></tr>
<tr class="separator:afe2675c066a09f87a630836c5f721e40"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55967058a645eade8301ded4163b1c0f"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a55967058a645eade8301ded4163b1c0f">lpConnectCompleteFunc</a>) (<a class="el" href="class_c_sock_error.html">CSockError</a> ec, void *invoker)</td></tr>
<tr class="separator:a55967058a645eade8301ded4163b1c0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a099fed87c933c9ed28f3889db6adbfe5"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a099fed87c933c9ed28f3889db6adbfe5">lpWRCompleteFunc</a>) (char *data, <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> dwSize, <a class="el" href="class_c_sock_error.html">CSockError</a> ec, void *invoker)</td></tr>
<tr class="separator:a099fed87c933c9ed28f3889db6adbfe5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65db86524d66ff5c871579e2dacf12ca"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a65db86524d66ff5c871579e2dacf12ca">lpTimeoutCompleteFunc</a>) (<a class="el" href="class_c_sock_error.html">CSockError</a> ec, void *invoker)</td></tr>
<tr class="separator:a65db86524d66ff5c871579e2dacf12ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19358efe08e40c8fe899cbec837c5d87"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>(*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a19358efe08e40c8fe899cbec837c5d87">lpPostCompleteFunc</a>) (void *invoker)</td></tr>
<tr class="separator:a19358efe08e40c8fe899cbec837c5d87"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:aab6ce5ae338e36d66137b8d9ed1ccfa1"><td class="memItemLeft" align="right" valign="top">unsigned <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#aab6ce5ae338e36d66137b8d9ed1ccfa1">HostByteOrder</a> ()</td></tr>
<tr class="memdesc:aab6ce5ae338e36d66137b8d9ed1ccfa1"><td class="mdescLeft">&#160;</td><td class="mdescRight">判断大端还是小端字节序  <a href="_sock_tools_8h.html#aab6ce5ae338e36d66137b8d9ed1ccfa1">更多...</a><br /></td></tr>
<tr class="separator:aab6ce5ae338e36d66137b8d9ed1ccfa1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a486e36ffbc5ef3ed2987d4c9e9d9baa4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_sock_error.html">CSockError</a> <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a486e36ffbc5ef3ed2987d4c9e9d9baa4">Bind</a> (<a class="el" href="class_c_socket.html">CSocket</a> &amp;sock, const char *szAddr=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>, <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> port=-1)</td></tr>
<tr class="memdesc:a486e36ffbc5ef3ed2987d4c9e9d9baa4"><td class="mdescLeft">&#160;</td><td class="mdescRight">绑定套接字端口  <a href="_sock_tools_8h.html#a486e36ffbc5ef3ed2987d4c9e9d9baa4">更多...</a><br /></td></tr>
<tr class="separator:a486e36ffbc5ef3ed2987d4c9e9d9baa4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7baacf6ef43d9043036035ba63294125"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_sock_error.html">CSockError</a> <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a7baacf6ef43d9043036035ba63294125">Listen</a> (<a class="el" href="class_c_socket.html">CSocket</a> &amp;sock, <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> backlog=SOMAXCONN)</td></tr>
<tr class="memdesc:a7baacf6ef43d9043036035ba63294125"><td class="mdescLeft">&#160;</td><td class="mdescRight">监听套接字  <a href="_sock_tools_8h.html#a7baacf6ef43d9043036035ba63294125">更多...</a><br /></td></tr>
<tr class="separator:a7baacf6ef43d9043036035ba63294125"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3566b83d923c77ab474018f53eb243fc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_c_sock_error.html">CSockError</a> <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a3566b83d923c77ab474018f53eb243fc">GetSockName</a> (const <a class="el" href="class_c_socket.html">CSocket</a> &amp;sock, <a class="el" href="class_c_sock_addr.html">CSockAddr</a> &amp;addr)</td></tr>
<tr class="memdesc:a3566b83d923c77ab474018f53eb243fc"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取套接口本地名字  <a href="_sock_tools_8h.html#a3566b83d923c77ab474018f53eb243fc">更多...</a><br /></td></tr>
<tr class="separator:a3566b83d923c77ab474018f53eb243fc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:ac7875a7f6984241a06892f7041b4d30a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a> typedef <a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#ac7875a7f6984241a06892f7041b4d30a">SOCKIDEN</a></td></tr>
<tr class="memdesc:ac7875a7f6984241a06892f7041b4d30a"><td class="mdescLeft">&#160;</td><td class="mdescRight">SOCKET唯一标识符ID  <a href="_sock_tools_8h.html#ac7875a7f6984241a06892f7041b4d30a">更多...</a><br /></td></tr>
<tr class="separator:ac7875a7f6984241a06892f7041b4d30a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74bad9070f3dc35adaec8fa382504102"><td class="memItemLeft" align="right" valign="top">class <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#a74bad9070f3dc35adaec8fa382504102">CTcpServiceBase</a></td></tr>
<tr class="separator:a74bad9070f3dc35adaec8fa382504102"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec76601dfa14e47047b7540fd719b0fa"><td class="memItemLeft" align="right" valign="top">class <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_sock_tools_8h.html#aec76601dfa14e47047b7540fd719b0fa">CSocket</a></td></tr>
<tr class="separator:aec76601dfa14e47047b7540fd719b0fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="a59cac0d926595c4ebd82cf829a49b4bf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a59cac0d926595c4ebd82cf829a49b4bf">&#9670;&nbsp;</a></span>AcceptHandle</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define AcceptHandle&#160;&#160;&#160;<a class="el" href="class_a_c_t_handle.html">ACTHandle</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00331">331</a> 行定义.</p>

</div>
</div>
<a id="a0d9fef77e2a00d63c4a5eb9d85b20144"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d9fef77e2a00d63c4a5eb9d85b20144">&#9670;&nbsp;</a></span>AcceptHandleNull</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define AcceptHandleNull&#160;&#160;&#160;<a class="el" href="class_a_c_t_handle_null.html">ACTHandleNull</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00332">332</a> 行定义.</p>

</div>
</div>
<a id="aa7015b245ddc2e7d6eafc9e3c4cdde10"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa7015b245ddc2e7d6eafc9e3c4cdde10">&#9670;&nbsp;</a></span>ConnectHandle</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ConnectHandle&#160;&#160;&#160;<a class="el" href="class_a_c_t_handle.html">ACTHandle</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00339">339</a> 行定义.</p>

</div>
</div>
<a id="a2acb96bf6b526c449d82546b317d0833"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2acb96bf6b526c449d82546b317d0833">&#9670;&nbsp;</a></span>ConnectHandleNull</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ConnectHandleNull&#160;&#160;&#160;<a class="el" href="class_a_c_t_handle_null.html">ACTHandleNull</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00340">340</a> 行定义.</p>

</div>
</div>
<a id="a51429904e713674c3ab7b0474a452ea3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a51429904e713674c3ab7b0474a452ea3">&#9670;&nbsp;</a></span>ReadAddrHandle</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ReadAddrHandle&#160;&#160;&#160;<a class="el" href="class_w_r_addr_handle.html">WRAddrHandle</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00379">379</a> 行定义.</p>

</div>
</div>
<a id="a605103f80900756f0b8428b5227e9ab2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a605103f80900756f0b8428b5227e9ab2">&#9670;&nbsp;</a></span>ReadAddrHandleNull</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ReadAddrHandleNull&#160;&#160;&#160;<a class="el" href="class_w_r_addr_handle_null.html">WRAddrHandleNull</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00380">380</a> 行定义.</p>

</div>
</div>
<a id="a04df18cf2e31e3b90db6b32e80c6f9cb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04df18cf2e31e3b90db6b32e80c6f9cb">&#9670;&nbsp;</a></span>ReadHandle</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ReadHandle&#160;&#160;&#160;<a class="el" href="class_w_r_handle.html">WRHandle</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00363">363</a> 行定义.</p>

</div>
</div>
<a id="a65fed703a397af3bcd8215cc6f627376"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65fed703a397af3bcd8215cc6f627376">&#9670;&nbsp;</a></span>ReadHandleNull</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define ReadHandleNull&#160;&#160;&#160;<a class="el" href="class_w_r_handle_null.html">WRHandleNull</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00364">364</a> 行定义.</p>

</div>
</div>
<a id="ad5e706c22565ef38bcf6421cc05c3514"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad5e706c22565ef38bcf6421cc05c3514">&#9670;&nbsp;</a></span>SOCKIDEN_ZERO</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define SOCKIDEN_ZERO&#160;&#160;&#160;0</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00020">20</a> 行定义.</p>

</div>
</div>
<a id="a48c0b32db2190fa1ef69ff765ce9047a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a48c0b32db2190fa1ef69ff765ce9047a">&#9670;&nbsp;</a></span>TimeoutHandle</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TimeoutHandle&#160;&#160;&#160;<a class="el" href="class_a_c_t_handle.html">ACTHandle</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00347">347</a> 行定义.</p>

</div>
</div>
<a id="a8f9f54d4280fff668917b64c28f05b21"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8f9f54d4280fff668917b64c28f05b21">&#9670;&nbsp;</a></span>TimeoutHandleNull</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define TimeoutHandleNull&#160;&#160;&#160;<a class="el" href="class_a_c_t_handle_null.html">ACTHandleNull</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00348">348</a> 行定义.</p>

</div>
</div>
<a id="a0848656016aca1833c276f765003456c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0848656016aca1833c276f765003456c">&#9670;&nbsp;</a></span>WriteAddrHandle</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define WriteAddrHandle&#160;&#160;&#160;<a class="el" href="class_w_r_addr_handle.html">WRAddrHandle</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00371">371</a> 行定义.</p>

</div>
</div>
<a id="a2667b68c3f52c29704ce1b76b2dc3570"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2667b68c3f52c29704ce1b76b2dc3570">&#9670;&nbsp;</a></span>WriteAddrHandleNull</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define WriteAddrHandleNull&#160;&#160;&#160;<a class="el" href="class_w_r_addr_handle_null.html">WRAddrHandleNull</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00372">372</a> 行定义.</p>

</div>
</div>
<a id="a98f727c835ef1e8dab91376ac6f77307"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98f727c835ef1e8dab91376ac6f77307">&#9670;&nbsp;</a></span>WriteHandle</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define WriteHandle&#160;&#160;&#160;<a class="el" href="class_w_r_handle.html">WRHandle</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00355">355</a> 行定义.</p>

</div>
</div>
<a id="ae34744d4c503b8497eccf3170c647ecf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae34744d4c503b8497eccf3170c647ecf">&#9670;&nbsp;</a></span>WriteHandleNull</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define WriteHandleNull&#160;&#160;&#160;<a class="el" href="class_w_r_handle_null.html">WRHandleNull</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00356">356</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类型定义说明</h2>
<a id="afe2675c066a09f87a630836c5f721e40"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe2675c066a09f87a630836c5f721e40">&#9670;&nbsp;</a></span>lpAcceptCompleteFunc</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>(* lpAcceptCompleteFunc) (<a class="el" href="class_c_sock_error.html">CSockError</a> ec, void *invoker)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00181">181</a> 行定义.</p>

</div>
</div>
<a id="a55967058a645eade8301ded4163b1c0f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a55967058a645eade8301ded4163b1c0f">&#9670;&nbsp;</a></span>lpConnectCompleteFunc</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>(* lpConnectCompleteFunc) (<a class="el" href="class_c_sock_error.html">CSockError</a> ec, void *invoker)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00183">183</a> 行定义.</p>

</div>
</div>
<a id="a19358efe08e40c8fe899cbec837c5d87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19358efe08e40c8fe899cbec837c5d87">&#9670;&nbsp;</a></span>lpPostCompleteFunc</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>(* lpPostCompleteFunc) (void *invoker)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00191">191</a> 行定义.</p>

</div>
</div>
<a id="a65db86524d66ff5c871579e2dacf12ca"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a65db86524d66ff5c871579e2dacf12ca">&#9670;&nbsp;</a></span>lpTimeoutCompleteFunc</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>(* lpTimeoutCompleteFunc) (<a class="el" href="class_c_sock_error.html">CSockError</a> ec, void *invoker)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00187">187</a> 行定义.</p>

</div>
</div>
<a id="a099fed87c933c9ed28f3889db6adbfe5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a099fed87c933c9ed28f3889db6adbfe5">&#9670;&nbsp;</a></span>lpWRCompleteFunc</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>(* lpWRCompleteFunc) (char *data, <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> dwSize, <a class="el" href="class_c_sock_error.html">CSockError</a> ec, void *invoker)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00185">185</a> 行定义.</p>

</div>
</div>
<a id="a23c9ed857354ad531dd0484d638a6224"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23c9ed857354ad531dd0484d638a6224">&#9670;&nbsp;</a></span>SOCKADDR_UN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef sockaddr_un <a class="el" href="_sock_tools_8h.html#a23c9ed857354ad531dd0484d638a6224">SOCKADDR_UN</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00033">33</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">函数说明</h2>
<a id="a486e36ffbc5ef3ed2987d4c9e9d9baa4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a486e36ffbc5ef3ed2987d4c9e9d9baa4">&#9670;&nbsp;</a></span>Bind()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_sock_error.html">CSockError</a> <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> Bind </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_socket.html">CSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>szAddr</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td>
          <td class="paramname"><em>port</em> = <code>-1</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>绑定套接字端口 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>已创建的套接字 </td></tr>
    <tr><td class="paramname">szAddr</td><td>绑定的地址 </td></tr>
    <tr><td class="paramname">port</td><td>绑定的端口 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回CSockError::succ,失败返回相应的错误码 </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>若szAddr为null或port为-1则会通过sock获取到地址和端口，否则为sock端口、地址进行赋值 </dd></dl>

<p class="definition">在文件 <a class="el" href="_sock_tools_8cpp_source.html">SockTools.cpp</a> 第 <a class="el" href="_sock_tools_8cpp_source.html#l00033">33</a> 行定义.</p>

</div>
</div>
<a id="a3566b83d923c77ab474018f53eb243fc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3566b83d923c77ab474018f53eb243fc">&#9670;&nbsp;</a></span>GetSockName()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_sock_error.html">CSockError</a> <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> GetSockName </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_c_socket.html">CSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_c_sock_addr.html">CSockAddr</a> &amp;&#160;</td>
          <td class="paramname"><em>addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取套接口本地名字 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>套接口类 </td></tr>
    <tr><td class="paramname">addr</td><td>地址结构信息 </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">在文件 <a class="el" href="_sock_tools_8cpp_source.html">SockTools.cpp</a> 第 <a class="el" href="_sock_tools_8cpp_source.html#l00077">77</a> 行定义.</p>

</div>
</div>
<a id="aab6ce5ae338e36d66137b8d9ed1ccfa1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab6ce5ae338e36d66137b8d9ed1ccfa1">&#9670;&nbsp;</a></span>HostByteOrder()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned <a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a> <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> HostByteOrder </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>判断大端还是小端字节序 </p>
<dl class="section return"><dt>返回</dt><dd>BIG_ENDIAN大端字节序，LITTER_ENDIAN小端字节序 </dd></dl>

<p class="definition">在文件 <a class="el" href="_sock_tools_8cpp_source.html">SockTools.cpp</a> 第 <a class="el" href="_sock_tools_8cpp_source.html#l00015">15</a> 行定义.</p>

</div>
</div>
<a id="a7baacf6ef43d9043036035ba63294125"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7baacf6ef43d9043036035ba63294125">&#9670;&nbsp;</a></span>Listen()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_sock_error.html">CSockError</a> <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> Listen </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_socket.html">CSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="_find_file_8h.html#a37cc1038758216808d5f75090b093c9a">int</a>&#160;</td>
          <td class="paramname"><em>backlog</em> = <code>SOMAXCONN</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>监听套接字 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>已创建的套接字 </td></tr>
    <tr><td class="paramname">backlog</td><td>监听的最大数量 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回CSockError::succ,失败返回相应的错误码 </dd></dl>

<p class="definition">在文件 <a class="el" href="_sock_tools_8cpp_source.html">SockTools.cpp</a> 第 <a class="el" href="_sock_tools_8cpp_source.html#l00067">67</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="aec76601dfa14e47047b7540fd719b0fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec76601dfa14e47047b7540fd719b0fa">&#9670;&nbsp;</a></span>CSocket</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">class <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> <a class="el" href="class_c_socket.html">CSocket</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00023">23</a> 行定义.</p>

</div>
</div>
<a id="a74bad9070f3dc35adaec8fa382504102"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a74bad9070f3dc35adaec8fa382504102">&#9670;&nbsp;</a></span>CTcpServiceBase</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">class <a class="el" href="tools_8h.html#a64152c8b939d1ce06c7c5cb6c97b62f8">LIBTOOLS</a> CTcpServiceBase</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00022">22</a> 行定义.</p>

</div>
</div>
<a id="ac7875a7f6984241a06892f7041b4d30a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7875a7f6984241a06892f7041b4d30a">&#9670;&nbsp;</a></span>SOCKIDEN</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a> typedef <a class="el" href="tools_8h.html#a6a2b55a6391419ed0b7b9da06e094b4b">INT64</a> SOCKIDEN</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>SOCKET唯一标识符ID </p>
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000001">待办事项:</a></b></dt><dd>...</dd></dl>

<p class="definition">在文件 <a class="el" href="_sock_tools_8h_source.html">SockTools.h</a> 第 <a class="el" href="_sock_tools_8h_source.html#l00019">19</a> 行定义.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
